﻿#include "reportstatusreq.h"

ReportStatusReq::ReportStatusReq() : BaseMsg(MSG_TYPE_REPORT_STATUS_REQ)
{

}

ReportStatusReq::ReportStatusReq(const SString &apps) : BaseMsg(MSG_TYPE_REPORT_STATUS_REQ), apps(apps)
{

}

ReportStatusReq::~ReportStatusReq()
{

}

int ReportStatusReq::decodeParametersFromTlv(TLV *tlv)
{
    apps = tlv->buffer;
    return f_success;
}

int ReportStatusReq::encodeParametersIntoTlvs(list<TLV *> &tlvs)
{
    tlvs.push_back(createTlvByStringValue(ReportStatusReqTag_apps, apps));
    return f_success;
}
